#!/usr/bin/env bash


echo "deploying scheduler-service"
kill -9 $(lsof -ti tcp:8019)
cp -rf cw-scheduler/target/cw-scheduler-1.0-SNAPSHOT.jar /data/cwys/

echo ".......start scheduler-service ...."
nohup java -Xms256m -Xmx512m -jar /data/cwys/cw-scheduler-1.0-SNAPSHOT.jar  > /dev/null 2>&1 &
sleep 15
echo ".........end scheduler-service......."





